home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
dev
/
amos
/
AMOS0398.lzh
/
AMOSLIST
/
000248_amos-request@svcs1.digex.net_Wed Mar 25 18:24:37 1998.msg
< prev
next >
Wrap
Text File
|
1998-04-01
|
4KB
|
96 lines
>From amos-request@svcs1.digex.net Wed Mar 25 18:24:37 1998
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by pony-1.mail.digex.net (8.8.8/8.8.8) with ESMTP id SAA11272
for <mcox@access.digex.net>; Wed, 25 Mar 1998 18:24:36 GMT
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id KAA27124
for amos-out; Wed, 25 Mar 1998 10:38:02 -0500 (EST)
Received: from pony-2.mail.digex.net (pony-2.mail.digex.net [204.91.241.6])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id KAA27121
for <amos-list@svcs1.digex.net>; Wed, 25 Mar 1998 10:38:01 -0500 (EST)
Received: from orca.ucd.ie (orca.ucd.ie [137.43.4.16])
by pony-2.mail.digex.net (8.8.8/8.8.8) with SMTP id KAA22985
for <amos-list@access.digex.net>; Wed, 25 Mar 1998 10:37:45 -0500 (EST)
Received: (qmail 29122 invoked by uid 1514); 25 Mar 1998 15:37:42 -0000
Date: Wed, 25 Mar 1998 15:37:42 +0000 (GMT)
From: Matt <mattw@orca.ucd.ie>
To: Amos-List <amos-list@access.digex.net>
Subject: Re: extension?
In-Reply-To: <1907.376T767T9082936@bahnhof.se>
Message-ID: <Pine.LNX.3.96.980325153423.27830A-100000@orca.ucd.ie>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Status: O
X-Status:
On 13 Mar 1998, Jonas Thorell wrote:
> Garfield Benjamin (gbenjam@sosbbs.com) wrote:
>
> >> If AGE<10
> >> Print "You are less than 10 years old."
> >> else if AGE=21
> >> Print "Hey!! Now you can drink alcohol in the U.S.!!"
> >> else
> >> Print "WOW, you're OVER 21!!"
> >> endif
> >> Smallest, and tidiest in my humble opinion.
> >> Is my approach good enough in the meantime?
>
> > Well, problem is this won't work.
>
> Yes it will. I tried it.
>
> >First, you need to match every If with an End If and second, the logic is not
> >the same.
>
> Both. If and endif is coupled the same way as select ... case ... endselect
> is so I can't see the problem. The logic is the same too. Select..is just
> more advanced in that it offers some extra features.
>
> >If AGE<10
> > Print "You are less than 10 years old."
> >Else If AGE=21
> > Print"Hey!! Now you can drink alcohol in the U.S.!!"
> > Else If AGE>21
> > Print "WOW, you'r OVER 21!!"
> > End If
> > End If
> >End If
>
> That would trigger the error-system. One if and three end-ifs is plain
> wrong.
>
> > That being said, this might be a bit clearer (arguably the "best"
> > method for AMOS) but it still lacks when compared to the
> > Select...Case style. Anyway, the point is you are still looking at
> > the same two basic methods, the If...End If and the If...Else...EndIf
>
> Yes but does it really matter? The result is what is importand and the
>
> if...
>
> else if ...
>
> else
>
> end if
>
> structure is quite close to the select.. syntax.
>
Hi, I just got to my email after a few weeks off and this is near the
top of the bundle ... It's probably answered later on tho...
Didn't one of the updates to Amos/Pro fix the Elseif etc prob? So
although messy some older versions can only use the Second approach. I
remember this change cos at the time I thought that Amos code
sometimes looked ridiculous with all the indenting.....
### ### ######## ########### ###########
#### #### ### ### ### ###
##!## ##!## #!# #!# #!# #!#
!#! #!#!# !@! !@!!@@!!@! !@! !@! mattw@netsoc.ucd.ie
!!! ! !!! !!! !!! !!! !!! x x
:!: :!: :!: :!: :!: :!: \__/
::: ::: ::: ::: ::: :::
:: :: :: :: : :